import Vue from 'vue'
import Router from 'vue-router'
import pay from '@/components/pay'
import paySuccess from '@/components/paySuccess'
import payDetail from '@/components/payDetail'
import Find from '@/components/404.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'pay',
      component: pay
    },
     {
      path: '/404',
      name: '404',
      component: Find
    },
    // {
    //   path: '/pay',
    //   name: 'pay',
    //   component: pay
    // },
    {
      path: '/paySuccess/:id',
      name: 'paySuccess',
      component: paySuccess
    },
    {
      path: '/payDetail/',
      name: 'payDetail',
      component: payDetail
    }
  ]
})
